package org.itboys.mobile.entity.mysql.order;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * 作者：zzq
 * 时间：2017/12/5
 * 描述：迈迪龙_订单商品
 */
public class CooOrderProduct extends BaseMySqlEntity{
    private Long orderId;//订单id
    private BigDecimal price;//零售价或销售价
    // private BigDecimal retailPrice;//产品零售价格
    private Long productId;//产品Id
    private String name;//产品名称
    private String number;//产品编号
    private String image;//产品图片
    private String standard;//规格
    private Integer num;//数量
    private Integer type;//1,商城，2，积分，3采购
    //2017年7月1日，新增。核销金额。门店/大客户专用。即当前的销售价
    //    private BigDecimal accountAmount;//单品核销金额，初始商品价格
    public CooOrderProduct() {
    }

    public CooOrderProduct(Long orderId, Long productId, BigDecimal price,
                           String name, String number,
                           String image, String standard, Integer num, Integer type) {
        this.orderId = orderId;
        this.productId=productId;
        this.price = price;
        this.name = name;
        this.number=number;
        this.image=image;
        this.standard = standard;
        this.num = num;

        this.type = type;
        //  this.accountAmount=price;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

     /*   public BigDecimal getRetailPrice() {
                return retailPrice;
        }

        public void setRetailPrice(BigDecimal retailPrice) {
                this.retailPrice = retailPrice;
        }*/


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

      /*  public BigDecimal getAccountAmount() {
                return accountAmount;
        }

        public void setAccountAmount(BigDecimal accountAmount) {
                this.accountAmount = accountAmount;
        }*/


}
